package com.hgc.boot01.mapper;

import com.hgc.boot01.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper

public interface UserMapper {

    public List<User> findAll();

    public int insertUser(User user);

    public User getById(String id);

    public int updateUser(User user);

    public Long getCountByUser(String val);

    public List<User> findAllByPage(@Param("val") String val,
                                    @Param("currentPage") int currentPage,
                                    @Param("pageSize") int pageSize);

}
